package com.zhaofujun.filequeue;

import java.io.Closeable;
import java.io.IOException;

public interface FileQueue<T> extends Closeable {

    void push(T t) throws IOException;

    T pop(int no) throws IOException;

    void clear() throws IOException;

    long size() throws IOException;

    long unReadMessages(int no) throws IOException;

    T get(long position) throws IOException;

    T getTop(int no) throws IOException;

    void deleteSegmentFile()  ;


}

